<script id="home-box" type="text/html">
    <%for(var i =0;i<data.length;i++) {%>
    <div class="con-a">
          <a href="<%=data[i].link%>" style="background-image:url('<%=data[i].image%>')">
          </a>
      </div>
      <%}%>
</script>